const RoleCtrl = require('./role.ctrl')
const checkToken = require('../../middleware/checkToken')

module.exports = router => {
  router
    .get('/roles', checkToken, RoleCtrl.getRoles)
    .post('/roles', checkToken, RoleCtrl.createRoles)
}